import { OrderCreateDto, OrderListDto, OrderSingleDto, OrderUpdateDto } from '../dtos/order.dto';
import OrderModel from '../models/order.model';
import { PageRequest } from '../types';
import { BaseService } from './.service';

/**
 * 订单服务类
 */
export class OrderService extends BaseService<OrderModel, OrderListDto, OrderSingleDto, OrderCreateDto, OrderUpdateDto> {
  constructor() {
    super(OrderModel, new OrderSingleDto(), new OrderListDto());
  }
}

/**
 * 订单服务实例
 */
export const orderService = new OrderService();
